'''
该程序说明：使用点亮一颗 LED
在线文档：https://docs.geeksman.com/esp32/MicroPython/04.esp32-micropython-LED.html
'''
import time
from machine import Pin


# 声明一个引脚对象
pin2 = Pin(2, Pin.OUT)
pin1 = Pin(1, Pin.OUT)

# 41 green
# 1 red
# 2 blue
# 输出高电平
while True:
  pin2.value(1)
  time.sleep(1)
  pin2.value(0)
  
  time.sleep(1)
#   
#   pin2.value(1)
#   time.sleep(1)
#   pin2.value(0)